package com.hirisun.myfaces.context.servlet;

import javax.faces.context.FacesContext;

import org.apache.myfaces.context.ReleaseableExternalContext;
import org.apache.myfaces.context.ReleaseableFacesContextFactory;
import org.apache.myfaces.context.servlet.FacesContextImpl;

public class FacesContextImplExt extends FacesContextImpl {

	private ProcessContex _ProcessContex = null;

	public ProcessContex getProcessContex() {
		if(_ProcessContex == null){
			_ProcessContex = new ProcessContex();
		}
		return _ProcessContex;
	}

	public void setProcessContex(ProcessContex processContex) {
		_ProcessContex = processContex;
	}

	public FacesContextImplExt(ReleaseableExternalContext externalContext,
			ReleaseableFacesContextFactory facesContextFactory) {
		super(externalContext, facesContextFactory);

	}
	
	public static FacesContextImplExt getCurrentInstance(){
		return (FacesContextImplExt) FacesContext.getCurrentInstance();
	}
	
	

}
